from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium import webdriver
from selenium.webdriver.common.by import By
#返回一个空列表[]    find_elements
driver = webdriver.Chrome()
driver.get("https://www.baidu.com")
kw = driver.find_elements(By.CLASS_NAME, "dfdf")
print(kw)
# print(kw.get_attribute("outerHTML"))

driver.quit()